<%@page import="com.wanmait.cookbook.vo.Userinfo"%>
<%String path=request.getContextPath(); %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%Userinfo userinfo = (Userinfo)request.getAttribute("userinfo");
    int fansCount = (int)request.getAttribute("fansCount");
    int attCount = (int)request.getAttribute("attCount");
    int cookbookCount = (int)request.getAttribute("cookbookCount");
    int worksCount = (int)request.getAttribute("worksCount");
    int id = (int)request.getAttribute("id");
    %>
 <div class="person-info clearfix mt30">
 
    <a href="" style="background: url(<%=path %>/static/image/<%=userinfo.getAvatar() %>) no-repeat center center;background-size:cover;" class="person-img left">
        
    </a>
    <div class="info left">
        <a class="nickname" href="javascript:void(0)"><%=userinfo.getName() %></a>
                <a class="proicon" style="margin-top:10px" href="javascript:void(0)" target="_blank">
            <img class="proimg" src="./static/image/da84247847aebe48d9dd0fcdac88862a.png" alt="">
        </a>
        		
                <p class="sex">
                <%if(userinfo.getSex()) {%>
                	<i class="male"></i>
                	<%}else{ %>
                	<i class="female"></i>
                	<%} %>
                <%=userinfo.getCity().getName() %></p>
        <p class="intro">
          <span><%=userinfo.getInfo() %></span>
          </p>
          <%Userinfo userinfo2 = (Userinfo)session.getAttribute("userinfo");
          if(userinfo.getId()!=userinfo2.getId()){
   	  
          %>
         	<a class="fav right" data-action="add" href="javascript:void(0)" onclick=" guanzhu(this,&#39;5735734&#39;,&#39;XJm8NIr9iQCC6AGzQDtwakqpnbZFS3MUFh73gVXs&#39;,1) "><span class="addicon">＋</span> 关注</a>
         	<%} %>
     </div>
    <div class="right">
        <div class="fav-fans">
            <div class="left">
                <a href="<%=path%>/UserInfoServlet?action=showAttentiuonUser">
                    <p class="count"><%=attCount %></p>
                    <p class="text">关注</p>
                </a>
            </div>
            <div class="left">
                <a href="<%=path%>/UserInfoServlet?action=showFansUser">
                    <p class="count"><%=fansCount %> </p>
                    <p class="text">粉丝</p>
                </a>
            </div>
            <div class="left">
                <a href="<%=path %>/PersonalServlet?action=init&id=<%=id %>">
                    <p class="count"><%=cookbookCount %></p>
                    <p class="text">食谱</p>
                </a>
            </div>
            <div class="left">
                <a href="<%=path %>/PersonalServlet?action=myWorks&id=<%=id %>">
                    <p class="count"><%=worksCount %> </p>
                    <p class="text">作品</p>
                </a>
            </div>
        </div>
    </div>

</div>
<div class="type-head clearfix">
    <a href="<%=path %>/PersonalServlet?action=init&id=<%=id %>" class="active" one-link-mark="yes">菜谱</a>
    <a href="<%=path %>/PersonalServlet?action=myWorks&id=<%=id %>" class="active" one-link-mark="yes">作品</a>
    <a href="<%=path %>/PersonalServlet?action=mycollectCookbook&id=<%=id %>" class="active" one-link-mark="yes">收藏</a> 
</div> 